/**
 * Created by Freeman on 2016/8/11.
 */
import React,{PropTypes} from 'react'
import {Link} from 'react-router'
import classnames from 'classnames'
const MineNav = ({location}) => {
    return (
        <div className="col-sm-1 sidebar-box">
            <ul className="nav nav-pills nav-stacked mt-10">
                <li role="presentation" className={classnames({'active':location.pathname === '/mine/profile'})}><Link to="/mine/profile" activeClassName="active" >Profile</Link></li>
                <li role="presentation" className={classnames({'active':location.pathname === '/mine/posts'})}><Link to="/mine/posts" activeClassName="active" >我的博客</Link></li>
            </ul>
        </div>
    )
};

MineNav.propTypes = {
    location:PropTypes.object
}

export default MineNav